package com.ck.ck_back.service;

import com.ck.ck_back.pojo.LikeComment;
import com.ck.ck_back.pojo.LikeProduction;

import java.util.List;

public interface likeproductionservice {
    /**
     * 点赞。状态为1
     * @param likedProductionId
     * @param likedPostId
     */
    void saveLiked2Redis(int likedProductionId, String likedPostId);

    /**
     * 取消点赞。将状态改变为0
     * @param likedProductionId
     * @param likedPostId
     */
    void unlikeFromRedis(int likedProductionId, String likedPostId);


    List<LikeProduction> getLikedDataFromRedis();

    void deal_withdata(List<LikeProduction> likeProductions);

    int get_production_state(int likedProductionId, String likedPostId);
}
